import numpy as np

a = np.arange(10)
print(a)
s = slice(2, 7, 3)
print(a[s])

b = a[2:7:2]
print(b)

b = a[5]
print(b)

b = a[2::2]
print(b)

b = np.array([[1, 2, 3], [3, 4, 5], [4, 5, 6]])
print(b[..., 1])
print(b[..., 1:])
